package com.yunxi.sat.service;

import com.github.pagehelper.PageInfo;
import com.yunxi.core.web.LoginInfo;
import com.yunxi.sat.pojo.EvaluateCountVO;
import com.yunxi.sat.pojo.EvaluateVO;

import java.util.ArrayList;
import java.util.List;

public class EvaluateDubboServiceMock implements EvaluateDubboService {
    @Override
    public EvaluateVO getById(String id) throws Exception {
        return null;
    }

    @Override
    public void saveOrUpdate(EvaluateVO evaluateVO) throws Exception {

    }

    @Override
    public void removeById(String id) {

    }

    @Override
    public PageInfo<EvaluateVO> findPageByVO(EvaluateVO evaluateVO, Integer pageNum, Integer pageSize, LoginInfo loginInfo) throws Exception {
        PageInfo<EvaluateVO> pageInfo = new PageInfo<EvaluateVO>();
        List list = new ArrayList();
        EvaluateVO vo = new EvaluateVO();
        vo.setMemo("暂无数据");
        list.add(vo);
        pageInfo.setList(list);
        return pageInfo;
    }

    @Override
    public void removeByListVo(List<EvaluateVO> evaluateVOList) throws Exception {

    }

    @Override
    public List listByVo(EvaluateVO evaluateVO) {
        List list = new ArrayList();
        EvaluateVO vo = new EvaluateVO();
        vo.setMemo("暂无数据");
        list.add(vo);
        return list;
    }

    @Override
    public List<List<EvaluateCountVO>> evaluateCount(LoginInfo loginInfo) throws Exception {
        List list = new ArrayList();
        ArrayList<Object> list1 = new ArrayList<>();
        EvaluateCountVO vo = new EvaluateCountVO();
        vo.setEvalType("暂无数据");
        list1.add(vo);
        list.add(list1);
        list.add(vo);
        return list;
    }
}
